//导入第三方模块express返回一个对象方法调用该对象下的Router方法创建路由对象
const express = require('express');
//创建路由对象
const home = express.Router();
//为路由对象挂载二级路由
home.get('/default', require('./home/default'));
home.get('/article', require('./home/article'));
home.post('/comment', require('./home/comment-post'));
//将路由对象导出
module.exports = home;